package com.blb.zycommunity.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 房间
 * </p>
 *
 * @author chenheng
 * @since 2023-11-20
 */
@Data
@TableName("zy_room")
@ApiModel(value = "ZyRoom对象", description = "房间 ")
public class ZyRoom implements Serializable {

    private static final long serialVersionUID = 1L;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableId
    @ApiModelProperty("房间id")
    private Long roomId;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty("小区id")
    private Long communityId;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty("楼栋id")
    private Long buildingId;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty("单元id")
    private Long unitId;

    @ApiModelProperty("楼层")
    private Integer roomLevel;

    @ApiModelProperty("房间编号")
    private String roomCode;

    @ApiModelProperty("房间名称")
    private String roomName;

    @ApiModelProperty("房屋建筑面积")
    private BigDecimal roomAcreage;

    @ApiModelProperty("算费系数")
    private BigDecimal roomCost;

    @ApiModelProperty("房屋状态")
    private String roomStatus;

    @ApiModelProperty("是否商铺")
    private String roomIsShop;

    @ApiModelProperty("是否商品房")
    private String roomSCommercialHouse;

    @ApiModelProperty("房屋户型")
    private String roomHouseType;

    @ApiModelProperty("创建者")
    private String createBy;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新者")
    private String updateBy;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("备注")
    private String remark;


    /**
     * 保存格式化后时间的属性
     */
    @TableField(exist = false)
    @ExcelIgnore
    private String formattedCreateTime;


    //    楼栋
    @TableField(exist = false)
    private ZyBuilding zybuilding;

    //    小区
    @TableField(exist = false)
    private ZyCommunity zycommunity;
    //    单元
    @TableField(exist = false)
    private ZyUnit zyunit;






}
